const yesOrNoOptions = [
  {
    label: '是',
    value: '1'
  },
  {
    label: '否',
    value: '0'
  }
]
export const definedFields = [
  { label: '涉敏类型', prop: 'what_log_remarksa5', component: 'Input', componentProps: { placeholder: '请输入', allowClear: true } },
  { label: '服务端IP', prop: 'whereto_dev_dip_str', component: 'Input', componentProps: { placeholder: '请输入', allowClear: true } },
  { label: '客户端IP', prop: 'wherefrom_dev_sip_str', component: 'Input', componentProps: { placeholder: '请输入', allowClear: true } },
  { label: '域名', prop: 'what_dev_app_domain', component: 'Input', componentProps: { placeholder: '请输入', allowClear: true } },
  { label: '资产路径', prop: 'what_dev_app_url', component: 'Input', componentProps: { placeholder: '请输入', allowClear: true } },
  { label: '时间', prop: 'when_op_datetime', component: 'RangePicker', componentProps: { allowClear: true, format: 'YYYY-MM-DD', valueFormat: 'YYYY-MM-DD' } }
]
//查询字段
export const queryFields = [
  // 基础信息
  {
    label: '主键',
    prop: 'event_id',
    component: 'Input',
    componentProps: {
      placeholder: '请输入',
      allowClear: true
    }
  },
  {
    label: '扫描引擎ip',
    prop: 'where_dev_ip_str',
    component: 'Input',
    componentProps: {
      placeholder: '请输入',
      allowClear: true
    }
  },

  // 采集信息
  {
    label: '日志接收入库时间',
    prop: 'when_op_recv_time',
    component: 'RangePicker',
    componentProps: { allowClear: true, format: 'YYYY-MM-DD', valueFormat: 'YYYY-MM-DD' }
  },
  {
    label: '采集日志编号',
    prop: 'how_log_coll_id',
    component: 'Input',
    componentProps: {
      placeholder: '请输入',
      allowClear: true
    }
  },
  {
    label: '日志来源编号',
    prop: 'what_op_app_id',
    component: 'Input',
    componentProps: {
      placeholder: '请输入',
      allowClear: true
    }
  },
  {
    label: '日志来源子类编号',
    prop: 'how_op_dev_type',
    component: 'Input',
    componentProps: {
      placeholder: '请输入',
      allowClear: true
    }
  },
  {
    label: '日志来源名称',
    prop: 'what_op_app_name',
    component: 'Input',
    componentProps: {
      placeholder: '请输入',
      allowClear: true
    }
  },
  {
    label: '日志来源子类名称',
    prop: 'how_op_dev_name',
    component: 'Input',
    componentProps: {
      placeholder: '请输入',
      allowClear: true
    }
  },

  // 详细信息
  {
    label: '原始日志编号',
    prop: 'how_log_orig_id',
    component: 'Input',
    componentProps: {
      placeholder: '请输入',
      allowClear: true
    }
  },
  {
    label: '原始日志(修改字段名称)',
    prop: 'what_log_orig',
    component: 'Input',
    componentProps: {
      placeholder: '请输入',
      allowClear: true
    }
  },

  // 更多属性 - IP相关
  {
    label: '源IP整数类型',
    prop: 'wherefrom_dev_sip_int',
    component: 'Input',
    componentProps: {
      placeholder: '请输入',
      allowClear: true
    }
  },
  {
    label: '源IP字符串类型(ipv4)',
    prop: 'wherefrom_dev_sip_str',
    component: 'Input',
    componentProps: {
      placeholder: '请输入',
      allowClear: true
    }
  },
  {
    label: '源IP归属地',
    prop: 'wherefrom_dev_sip_place',
    component: 'Input',
    componentProps: {
      placeholder: '请输入',
      allowClear: true
    }
  },
  {
    label: '源mac地址',
    prop: 'wherefrom_dev_smac',
    component: 'Input',
    componentProps: {
      placeholder: '请输入',
      allowClear: true
    }
  },
  {
    label: '源端口',
    prop: 'wherefrom_dev_sport',
    component: 'Input',
    componentProps: {
      placeholder: '请输入',
      allowClear: true
    }
  },
  {
    label: '目的IP整数类型',
    prop: 'whereto_dev_dip_int',
    component: 'Input',
    componentProps: {
      placeholder: '请输入',
      allowClear: true
    }
  },
  {
    label: '目的IP字符串类型',
    prop: 'whereto_dev_dip_str',
    component: 'Input',
    componentProps: {
      placeholder: '请输入',
      allowClear: true
    }
  },
  {
    label: '目的IP归属地',
    prop: 'whereto_dev_dip_place',
    component: 'Input',
    componentProps: {
      placeholder: '请输入',
      allowClear: true
    }
  },
  {
    label: '目的mac地址',
    prop: 'whereto_dev_dmac',
    component: 'Input',
    componentProps: {
      placeholder: '请输入',
      allowClear: true
    }
  },
  {
    label: '目的端口',
    prop: 'whereto_dev_dport',
    component: 'Input',
    componentProps: {
      placeholder: '请输入',
      allowClear: true
    }
  },

  // 更多属性 - 事件与操作
  {
    label: '事件名称',
    prop: 'where_dev_name_str',
    component: 'Input',
    componentProps: {
      placeholder: '请输入',
      allowClear: true
    }
  },
  {
    label: '操作内容',
    prop: 'what_op_cont',
    component: 'Input',
    componentProps: {
      placeholder: '请输入',
      allowClear: true
    }
  },
  {
    label: '操作类型编号',
    prop: 'how_op_orig_type_id',
    component: 'Input',
    componentProps: {
      placeholder: '请输入',
      allowClear: true
    }
  },
  {
    label: '是否工作时间',
    prop: 'when_op_is_work_time',
    component: 'Select',
    componentProps: {
      placeholder: '请选择',
      allowClear: true,
      options: yesOrNoOptions
    }
  },
  {
    label: '操作人主帐号行政组织编号',
    prop: 'who_adm_admintorg_id',
    component: 'Input',
    componentProps: {
      placeholder: '请输入',
      allowClear: true
    }
  },
  {
    label: '是否工作日',
    prop: 'when_op_is_work_day',
    component: 'Select',
    componentProps: {
      placeholder: '请选择',
      allowClear: true,
      options: yesOrNoOptions
    }
  },
  {
    label: '涉密等级',
    prop: 'how_op_audit_lv',
    component: 'Input',
    componentProps: {
      placeholder: '请输入',
      allowClear: true
    }
  },
  {
    label: '操作时间',
    prop: 'when_op_datetime',
    component: 'RangePicker',
    componentProps: { allowClear: true, format: 'YYYY-MM-DD', valueFormat: 'YYYY-MM-DD' }
  },
  {
    label: '操作方式',
    prop: 'how_op_mode',
    component: 'Input',
    componentProps: {
      placeholder: '请输入',
      allowClear: true
    }
  },
  {
    label: '操作时间(数字格式10位)',
    prop: 'when_op_timestamp',
    component: 'Input',
    componentProps: {
      placeholder: '请输入',
      allowClear: true
    }
  },
  {
    label: '资源名称',
    prop: 'what_dev_asset_name',
    component: 'Input',
    componentProps: {
      placeholder: '请输入',
      allowClear: true
    }
  },
  {
    label: '操作人主帐号行政组织ID全路径(用于做数据权限控制)',
    prop: 'who_adm_admintorg_idpath',
    component: 'Input',
    componentProps: {
      placeholder: '请输入',
      allowClear: true
    }
  },
  {
    label: '资产责任人',
    prop: 'what_dev_app_admin_name',
    component: 'Input',
    componentProps: {
      placeholder: '请输入',
      allowClear: true
    }
  },
  {
    label: '操作人主帐号行政组织',
    prop: 'who_adm_admintorg_name',
    component: 'Input',
    componentProps: {
      placeholder: '请输入',
      allowClear: true
    }
  },
  {
    label: '域名',
    prop: 'what_dev_app_domain',
    component: 'Input',
    componentProps: {
      placeholder: '请输入',
      allowClear: true
    }
  },
  {
    label: '操作人主帐号审计组织ID',
    prop: 'who_adm_audit_org_id',
    component: 'Input',
    componentProps: {
      placeholder: '请输入',
      allowClear: true
    }
  },
  {
    label: 'URL',
    prop: 'what_dev_app_url',
    component: 'Input',
    componentProps: {
      placeholder: '请输入',
      allowClear: true
    }
  },
  {
    label: '操作人主帐号审计组织名称',
    prop: 'who_adm_audit_org_name',
    component: 'Input',
    componentProps: {
      placeholder: '请输入',
      allowClear: true
    }
  },
  {
    label: '操作类型名称',
    prop: 'how_op_orig_type_name',
    component: 'Input',
    componentProps: {
      placeholder: '请输入',
      allowClear: true
    }
  },
  {
    label: '操作子类名称',
    prop: 'how_op_sub_type_name',
    component: 'Input',
    componentProps: {
      placeholder: '请输入',
      allowClear: true
    }
  },
  {
    label: '操作子类编号',
    prop: 'how_op_sub_type_id',
    component: 'Input',
    componentProps: {
      placeholder: '请输入',
      allowClear: true
    }
  },
  {
    label: '操作细项编号',
    prop: 'how_op_eve_id',
    component: 'Input',
    componentProps: {
      placeholder: '请输入',
      allowClear: true
    }
  },
  {
    label: '资产归属业务系统(全路径ID)',
    prop: 'what_dev_app_pathid',
    component: 'Input',
    componentProps: {
      placeholder: '请输入',
      allowClear: true
    }
  },
  {
    label: '操作人主帐号类型',
    prop: 'who_op_pri_acc_type',
    component: 'Input',
    componentProps: {
      placeholder: '请输入',
      allowClear: true
    }
  },
  {
    label: '资产归属业务系统(全路径名称)',
    prop: 'what_dev_app_pathname',
    component: 'Input',
    componentProps: {
      placeholder: '请输入',
      allowClear: true
    }
  },
  {
    label: '操作人主帐号状态',
    prop: 'who_op_pri_acc_state',
    component: 'Input',
    componentProps: {
      placeholder: '请输入',
      allowClear: true
    }
  },
  {
    label: '操作细项名称',
    prop: 'how_op_eve_name',
    component: 'Input',
    componentProps: {
      placeholder: '请输入',
      allowClear: true
    }
  },
  {
    label: '资产归属业务系统编号',
    prop: 'what_dev_app_id',
    component: 'Input',
    componentProps: {
      placeholder: '请输入',
      allowClear: true
    }
  },
  {
    label: '操作人主帐号角色',
    prop: 'who_op_pri_acc_role_name',
    component: 'Input',
    componentProps: {
      placeholder: '请输入',
      allowClear: true
    }
  },
  {
    label: '资产归属业务系统名称',
    prop: 'what_dev_app_name',
    component: 'Input',
    componentProps: {
      placeholder: '请输入',
      allowClear: true
    }
  },
  {
    label: '会话ID',
    prop: 'when_op_ses_id',
    component: 'Input',
    componentProps: {
      placeholder: '请输入',
      allowClear: true
    }
  },
  {
    label: '归属的资源组',
    prop: 'what_dev_it_name',
    component: 'Input',
    componentProps: {
      placeholder: '请输入',
      allowClear: true
    }
  },
  {
    label: '操作人从帐号类型',
    prop: 'who_op_sec_acc_type_name',
    component: 'Input',
    componentProps: {
      placeholder: '请输入',
      allowClear: true
    }
  },
  {
    label: '是否包含敏感信息',
    prop: 'what_log_is_sens',
    component: 'Select',
    componentProps: {
      placeholder: '请选择',
      allowClear: true,
      options: yesOrNoOptions
    }
  },
  {
    label: '操作人从帐号名称(登录帐号)',
    prop: 'who_op_sec_acc_l_name',
    component: 'Input',
    componentProps: {
      placeholder: '请输入',
      allowClear: true
    }
  },
  {
    label: '备注1',
    prop: 'what_log_remarksa1',
    component: 'Input',
    componentProps: {
      placeholder: '请输入',
      allowClear: true
    }
  },
  {
    label: '备注2',
    prop: 'what_log_remarksa2',
    component: 'Input',
    componentProps: {
      placeholder: '请输入',
      allowClear: true
    }
  },
  {
    label: '备注3',
    prop: 'what_log_remarksa3',
    component: 'Input',
    componentProps: {
      placeholder: '请输入',
      allowClear: true
    }
  },
  {
    label: '备注4',
    prop: 'what_log_remarksa4',
    component: 'Input',
    componentProps: {
      placeholder: '请输入',
      allowClear: true
    }
  },
  {
    label: '备注5',
    prop: 'what_log_remarksa5',
    component: 'Input',
    componentProps: {
      placeholder: '请输入',
      allowClear: true
    }
  },
  {
    label: '操作指令',
    prop: 'what_op_cont_brief',
    component: 'Input',
    componentProps: {
      placeholder: '请输入',
      allowClear: true
    }
  },
  {
    label: '是否金库操作',
    prop: 'how_treas_mode',
    component: 'Select',
    componentProps: {
      placeholder: '请选择',
      allowClear: true,
      options: yesOrNoOptions
    }
  },
  {
    label: '主帐号id',
    prop: 'who_op_pri_acc_l_id',
    component: 'Input',
    componentProps: {
      placeholder: '请输入',
      allowClear: true
    }
  },
  {
    label: '金库授权编号(金库ID)',
    prop: 'what_treas_scene_id',
    component: 'Input',
    componentProps: {
      placeholder: '请输入',
      allowClear: true
    }
  },
  {
    label: '从帐号id',
    prop: 'who_op_sec_acc_l_id',
    component: 'Input',
    componentProps: {
      placeholder: '请输入',
      allowClear: true
    }
  },
  {
    label: '授权类型(授权模型)',
    prop: 'how_treas_auth_mode',
    component: 'Input',
    componentProps: {
      placeholder: '请输入',
      allowClear: true
    }
  },
  {
    label: '操作人主帐号归属地市编号',
    prop: 'who_op_pri_acc_city_id',
    component: 'Input',
    componentProps: {
      placeholder: '请输入',
      allowClear: true
    }
  },
  {
    label: '授权凭据(工单号或验证信息)',
    prop: 'why_form_remarks',
    component: 'Input',
    componentProps: {
      placeholder: '请输入',
      allowClear: true
    }
  },
  {
    label: '操作人主帐号姓名(自然人)',
    prop: 'who_op_pri_acc_name',
    component: 'Input',
    componentProps: {
      placeholder: '请输入',
      allowClear: true
    }
  },
  {
    label: '凭据内容',
    prop: 'why_form_cont',
    component: 'Input',
    componentProps: {
      placeholder: '请输入',
      allowClear: true
    }
  },
  {
    label: '操作人主帐号名称(登录帐号)',
    prop: 'who_op_pri_acc_l_name',
    component: 'Input',
    componentProps: {
      placeholder: '请输入',
      allowClear: true
    }
  }
]
